package com.lishe.lishe.retrofit.interfaces;

import com.lishe.lishe.lishe.module.recharge.bean.RechargeRecord;
import com.lishe.lishe.retrofit.BaseRequestBody;
import com.lishe.lishe.retrofit.bean.RechargeRecordDataPageBody;
import com.lishe.lishe.retrofit.bean.CreatePreOrderBean;
import com.lishe.lishe.retrofit.bean.PayOrderQueryObject;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * Created by yang on 2018/1/25.
 */

public interface PayService {

    @FormUrlEncoded
    @POST("Pay/createPreOrder")
    /**
     * money	是	float/double/string	充值金额
     type	是	string	支付类型。1支付宝，2微信
     deviceId	是	string	手机识别码
     token	是	string	token
     */
    Observable<BaseRequestBody<CreatePreOrderBean>> createPreOrder(@Field("token") String token, @Field("money") double money, @Field("type") String type, @Field("deviceId") String deviceId);

    @FormUrlEncoded
    @POST("pay1/getPointPayList")
    Observable<BaseRequestBody<RechargeRecordDataPageBody<RechargeRecord>>> getRechargeRecord(@Field("token") String token,@Field("page") int page,@Field("pageSize") int pageSize);
}
